#fileName = psh_test.ps1
#function for countdown

#Function Countdown($number,$title,$text1,$text2='Pls Call Jmilk')
#{
#    Write-Host "Exit the Script after $number seconds" -ForegroundColor Red
#    $Countdown = $number
#    for($PercentComplete = $Countdown; $PercentComplete -ge 0; $PercentComplete--)
#    {
#        Write-Progress -Activity $title -Status $text1 -CurrentOperation $text2 -SecondsRemaining $PercentComplete ; 
#        Sleep -Seconds 1;
#    }
#}#End Function Countdown

Write-Host "Cyan print" -ForegroundColor Cyan
Write-Host "Yellow print" -ForegroundColor Yellow

#Change the work path
$WorkPath = 'C:\workarea\project_ocv'
cd $WorkPath

$cmd = 'commands'  #commands of Data-Collection 因为保密条约不能将内部指令对外 

#cmd /c $cmd | Out-File -FilePath E:\Users\userName\Desktop\hd.txt  
#在powershell里调用了别的Shell所以需要使用cmd指令来实现环境变量的传递
#Out-File 将数据导出到文件

Write-Host 'Build Done' -ForegroundColor Green

#Powershell call python
Start-Process cmd
Start-Process activate ocv
#在收集完数据后调用Python做数据处理

#结束并推出Powershell
#Countdown 60 'Hd.ps1' 'Exiting...' 'Pls go to the next step!' 

